﻿using SLUISystem;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEditor;
using UnityEngine;

public class EditorMenuDemo : EditorMenuBase
{
    public EditorMenuDemo(EditorWindow window) : base(window)
    {
        Init();
    }

    public void Init()
    {
        AddItem(new GUIContent("Test1"), false, new GenericMenu.MenuFunction2(AddNodeCallback), "Data");
    }

    private void AddNodeCallback(object obj)
    {
        Debug.Log(obj.ToString());
    }
}